import {WALLET_BALANCE} from "../../api/gw/index.js";
import axios from "axios";
// export const getWaitPayOffLineOrderInfo = param => 
//     axios('/offLine/getWaitPayOffLineOrderInfo', param, 'post', undefined, true, {type:1});
//获取钱包余额
export const getWalletBalance = function () {
    let options = {
        url: window.api.customer_host + WALLET_BALANCE + `?token=${new Date().getTime()}`,
        method: "get",
        headers: {sessionId: localStorage.getItem("sessionId")}
    }
    return axios(options);
}
//每分钟获取二维码
export const getQRCode = function () {
    let options = {
        url: window.api.trade_host + '/offLine/refreshQr' ,
        method: "post",
        data:{},
        headers: {sessionId: localStorage.getItem("sessionId")}
    }
    return axios(options);
}